#! /bin/bash

g++ -o a.out maps_gen.cpp -O2 -L/usr/X11R6/lib -lm -lpthread -lX11

cp maps_field.txt input.txt
./a.out
mv maps.bmp maps_field.bmp
rm input.txt

cp maps_not_field.txt input.txt
./a.out
mv maps.bmp maps_not_field.bmp
rm input.txt

rm a.out